<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
    return $request->user();
});
Route::get('/ceshi', function () {
    
    return 1212;
});


# 用户模块-用户
Route::get('/auth/register', 'AuthController@register');//账号注册
// Route::post('auth/regCaptcha', 'AuthController@regCaptcha');//注册验证码
// Route::post('auth/login', 'AuthController@login'); //账号登录
// Route::get('auth/info', 'AuthController@info'); //用户信息
// Route::post('auth/logout', 'AuthController@logout'); //账号登出
// Route::post('auth/reset', 'AuthController@reset'); //账号密码重置
// Route::post('auth/captcha', 'AuthController@regCaptcha'); //验证码
// Route::post('auth/profile', 'AuthController@profile'); //账号修改

